<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:60501/TimeAttentsService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:import schemaLocation="http://localhost:60501/TimeAttentsService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" />
  <xs:complexType name="ArrayOfPsTimeAttSummary">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PsTimeAttSummary" nillable="true" type="tns:PsTimeAttSummary" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPsTimeAttSummary" nillable="true" type="tns:ArrayOfPsTimeAttSummary" />
  <xs:complexType name="PsTimeAttSummary">
    <xs:sequence>
      <xs:element minOccurs="0" name="Absence" nillable="true" type="tns:PsAbsence" />
      <xs:element minOccurs="0" name="AbsenceAfternoon" nillable="true" type="tns:PsAbsence" />
      <xs:element minOccurs="0" name="CalAbsenceAfternoonId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CalAbsenceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CalAttenAfternoon" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalAttenAfternoonLate" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalAttenMorning" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalAttenMorningLate" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalCantCalculate" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalEndWorkingTime" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="CalEndWorkingTimeMorning" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="CalForDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="CalGetOffAfternoonEarly" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalGetOffMorning" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalGetOffMorningEarly" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalIsAbsenceAvailable" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalIsAtten" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalIsGetOffEarly" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalIsLate" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="CalLastestWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="CalReasonsOfCantCalculate" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CalStartWorkingTime" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="CalStartWorkingTimeAfternoon" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Employee" nillable="true" type="tns:Employee" />
      <xs:element minOccurs="0" name="PsTimeAttendance" nillable="true" type="tns:PsTimeAttendants" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TasId" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WorkingEnd" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="WorkingId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="WorkingStart" nillable="true" type="ser:duration" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PsTimeAttSummary" nillable="true" type="tns:PsTimeAttSummary" />
  <xs:complexType name="PsAbsence">
    <xs:sequence>
      <xs:element minOccurs="0" name="AbsenceId" type="xs:int" />
      <xs:element minOccurs="0" name="AbsenceType" nillable="true" type="tns:PsAbsenceType" />
      <xs:element minOccurs="0" name="AbsenceTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BgYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ContactAddress" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DayCount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Employee" nillable="true" type="tns:Employee" />
      <xs:element minOccurs="0" name="EndDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EndTime" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RequestTitle" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="StartDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="StartTime" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TimeCount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PsAbsence" nillable="true" type="tns:PsAbsence" />
  <xs:complexType name="PsAbsenceType">
    <xs:sequence>
      <xs:element minOccurs="0" name="AbsenceTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="AbsenceTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PsAbsenceType" nillable="true" type="tns:PsAbsenceType" />
  <xs:complexType name="Employee">
    <xs:sequence>
      <xs:element minOccurs="0" name="AdmittedDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="BirthDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="BloodGroup" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Citizen" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ClassId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DeathDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpId" type="xs:int" />
      <xs:element minOccurs="0" name="EmpStatusId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="EmpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ExecPosId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ExecutivePosition" nillable="true" type="tns:ExecutivePosition" />
      <xs:element minOccurs="0" name="FirstName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FirstNameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GenderId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ImageUnique" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsMockEmployee" type="xs:boolean" />
      <xs:element minOccurs="0" name="JobSite" nillable="true" type="tns:JobSite" />
      <xs:element minOccurs="0" name="LastName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LastNameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LatestClassDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="LatestPositionDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="LatestWorkingJobSiteDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="MaritalStatusId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MasClass" nillable="true" type="tns:MpClass" />
      <xs:element minOccurs="0" name="MasEmployeeStatus" nillable="true" type="tns:PsEmployeeStatus" />
      <xs:element minOccurs="0" name="MasEmployeeType" nillable="true" type="tns:MasEmployeeType" />
      <xs:element minOccurs="0" name="MasGender" nillable="true" type="tns:MasGender" />
      <xs:element minOccurs="0" name="MasMaritalStatus" nillable="true" type="tns:MasMaritalStatus" />
      <xs:element minOccurs="0" name="MasNamePrefix" nillable="true" type="tns:MasNamePrefix" />
      <xs:element minOccurs="0" name="MasNationality" nillable="true" type="tns:MasNationality" />
      <xs:element minOccurs="0" name="MasReligion" nillable="true" type="tns:MasReligion" />
      <xs:element minOccurs="0" name="NamePrefixId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="NationalId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="NickName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Official" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Position" nillable="true" type="tns:Position" />
      <xs:element minOccurs="0" name="ProbationEndDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="QuitDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="RaceMasNationality" nillable="true" type="tns:MasNationality" />
      <xs:element minOccurs="0" name="RaceNationalId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReligionId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Salary" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="SalaryLevelId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Social" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaxPayer" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="WorkStartDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WorkingJobSiteId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Employee" nillable="true" type="tns:Employee" />
  <xs:complexType name="ExecutivePosition">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="ExecPosGroup" nillable="true" type="q1:ExecPosGroup" />
      <xs:element minOccurs="0" name="ExecPosGroupId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ExecPosId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEngShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ExecutivePosition" nillable="true" type="tns:ExecutivePosition" />
  <xs:complexType name="JobSite">
    <xs:sequence>
      <xs:element minOccurs="0" name="Address" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Address2" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CityId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CountryId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DistrictId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Fax" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FullPath" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GfmisCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="HeaderPosId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="JobDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="JobSiteId" type="xs:int" />
      <xs:element minOccurs="0" name="JobSiteLevelId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="JobSiteStatusId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="JobSiteTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="LowerJobSites" nillable="true" type="tns:ArrayOfJobSite" />
      <xs:element minOccurs="0" name="MasCity" nillable="true" type="tns:MasCity" />
      <xs:element minOccurs="0" name="MasCountry" nillable="true" type="tns:MasCountry" />
      <xs:element minOccurs="0" name="MasDistrict" nillable="true" type="tns:MasDistrict" />
      <xs:element minOccurs="0" name="MasJobSiteLevel" nillable="true" type="tns:MasJobSiteLevel" />
      <xs:element minOccurs="0" name="MasJobSiteStatus" nillable="true" type="tns:MasJobSiteStatus" />
      <xs:element minOccurs="0" name="MasJobSiteType" nillable="true" type="tns:MasJobSiteType" />
      <xs:element minOccurs="0" name="MasJobSiteTypes" nillable="true" type="tns:ArrayOfMasJobSiteType" />
      <xs:element minOccurs="0" name="MasProvince" nillable="true" type="tns:MasProvince" />
      <xs:element minOccurs="0" name="MasWorkArea" nillable="true" type="tns:MasWorkArea" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEngShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PostalCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProvnceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RefJobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Tel" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpperJobSite" nillable="true" type="tns:JobSite" />
      <xs:element minOccurs="0" name="UpperJobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="WebAddress" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="WorkAreaId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="JobSite" nillable="true" type="tns:JobSite" />
  <xs:complexType name="ArrayOfJobSite">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="JobSite" nillable="true" type="tns:JobSite" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfJobSite" nillable="true" type="tns:ArrayOfJobSite" />
  <xs:complexType name="MasCity">
    <xs:sequence>
      <xs:element minOccurs="0" name="CityId" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CountryId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasCity" nillable="true" type="tns:MasCity" />
  <xs:complexType name="MasCountry">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CountryId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasCountry" nillable="true" type="tns:MasCountry" />
  <xs:complexType name="MasDistrict">
    <xs:sequence>
      <xs:element minOccurs="0" name="AmphurId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DistrictId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasDistrict" nillable="true" type="tns:MasDistrict" />
  <xs:complexType name="MasJobSiteLevel">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="JobSiteLevelId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasJobSiteLevel" nillable="true" type="tns:MasJobSiteLevel" />
  <xs:complexType name="MasJobSiteStatus">
    <xs:sequence>
      <xs:element minOccurs="0" name="JobSiteStatusId" type="xs:int" />
      <xs:element minOccurs="0" name="JobSites" nillable="true" type="tns:ArrayOfJobSite" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasJobSiteStatus" nillable="true" type="tns:MasJobSiteStatus" />
  <xs:complexType name="MasJobSiteType">
    <xs:sequence>
      <xs:element minOccurs="0" name="CurrentJobSite" nillable="true" type="tns:JobSite" />
      <xs:element minOccurs="0" name="CurrentJobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="JobSiteTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasJobSiteType" nillable="true" type="tns:MasJobSiteType" />
  <xs:complexType name="ArrayOfMasJobSiteType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasJobSiteType" nillable="true" type="tns:MasJobSiteType" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasJobSiteType" nillable="true" type="tns:ArrayOfMasJobSiteType" />
  <xs:complexType name="MasProvince">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ProvinceId" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasProvince" nillable="true" type="tns:MasProvince" />
  <xs:complexType name="MasWorkArea">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MasScope" nillable="true" type="tns:MasScope" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ScopeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="WorkAreaId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasWorkArea" nillable="true" type="tns:MasWorkArea" />
  <xs:complexType name="MasScope">
    <xs:sequence>
      <xs:element minOccurs="0" name="MasScopes" nillable="true" type="tns:ArrayOfMasScope" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ScopeId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasScope" nillable="true" type="tns:MasScope" />
  <xs:complexType name="ArrayOfMasScope">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasScope" nillable="true" type="tns:MasScope" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasScope" nillable="true" type="tns:ArrayOfMasScope" />
  <xs:complexType name="MpClass">
    <xs:sequence>
      <xs:element minOccurs="0" name="ClassEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ClassEngShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ClassId" type="xs:int" />
      <xs:element minOccurs="0" name="ClassName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ClassNameShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ClassNo" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="HrmMpPositionTypes" nillable="true" type="tns:MpPositionType" />
      <xs:element minOccurs="0" name="HrmPsEmployeeTypes" nillable="true" type="tns:MasEmployeeType" />
      <xs:element minOccurs="0" name="PosTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MpClass" nillable="true" type="tns:MpClass" />
  <xs:complexType name="MpPositionType">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpType" nillable="true" type="tns:MasEmployeeType" />
      <xs:element minOccurs="0" name="EmpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PosTypeEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosTypeEngShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="PosTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosTypeNameShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MpPositionType" nillable="true" type="tns:MpPositionType" />
  <xs:complexType name="MasEmployeeType">
    <xs:sequence>
      <xs:element minOccurs="0" name="AgeRetirement" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="EmpTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SalaryUpTime" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="YearTypeId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasEmployeeType" nillable="true" type="tns:MasEmployeeType" />
  <xs:complexType name="PsEmployeeStatus">
    <xs:sequence>
      <xs:element minOccurs="0" name="Active" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpStatusId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PsEmployeeStatus" nillable="true" type="tns:PsEmployeeStatus" />
  <xs:complexType name="MasGender">
    <xs:sequence>
      <xs:element minOccurs="0" name="GenderId" type="xs:int" />
      <xs:element minOccurs="0" name="MasNamePrefixs" nillable="true" type="tns:ArrayOfMasNamePrefix" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Thai" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasGender" nillable="true" type="tns:MasGender" />
  <xs:complexType name="ArrayOfMasNamePrefix">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasNamePrefix" nillable="true" type="tns:MasNamePrefix" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasNamePrefix" nillable="true" type="tns:ArrayOfMasNamePrefix" />
  <xs:complexType name="MasNamePrefix">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GenderId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MasGender" nillable="true" type="tns:MasGender" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEngShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NamePrefixId" type="xs:int" />
      <xs:element minOccurs="0" name="NameShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasNamePrefix" nillable="true" type="tns:MasNamePrefix" />
  <xs:complexType name="MasMaritalStatus">
    <xs:sequence>
      <xs:element minOccurs="0" name="MarStatusId" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasMaritalStatus" nillable="true" type="tns:MasMaritalStatus" />
  <xs:complexType name="MasNationality">
    <xs:sequence>
      <xs:element minOccurs="0" name="NatId" type="xs:int" />
      <xs:element minOccurs="0" name="NatName" type="xs:int" />
      <xs:element minOccurs="0" name="NatNameEng" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasNationality" nillable="true" type="tns:MasNationality" />
  <xs:complexType name="MasReligion">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReligionId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasReligion" nillable="true" type="tns:MasReligion" />
  <xs:complexType name="Position">
    <xs:sequence>
      <xs:element minOccurs="0" name="DefinedDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ExecPosId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ExecutivePosition" nillable="true" type="tns:ExecutivePosition" />
      <xs:element minOccurs="0" name="FieldPosId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="FieldPosition" nillable="true" type="tns:FieldPosition" />
      <xs:element minOccurs="0" name="JobDescription" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="JobSite" nillable="true" type="tns:JobSite" />
      <xs:element minOccurs="0" name="JobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="LowerPositions" nillable="true" type="tns:ArrayOfPosition" />
      <xs:element minOccurs="0" name="MasEmployeeType" nillable="true" type="tns:MasEmployeeType" />
      <xs:element minOccurs="0" name="MasPositionStatus" nillable="true" type="tns:MasPositionStatus" />
      <xs:element minOccurs="0" name="MoneySupportDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosExecSalary" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="PosId" type="xs:int" />
      <xs:element minOccurs="0" name="PosNo" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PosStatusId" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SalaryMax" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="SalaryMin" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="SalaryQuota" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="UpperPosId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpperPosition" nillable="true" type="tns:Position" />
      <xs:element minOccurs="0" name="WorkingLowerPositions" nillable="true" type="tns:ArrayOfPosition" />
      <xs:element minOccurs="0" name="WorkingUpperPosId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="WorkingUpperPosition" nillable="true" type="tns:Position" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Position" nillable="true" type="tns:Position" />
  <xs:complexType name="FieldPosition">
    <xs:sequence>
      <xs:element minOccurs="0" name="ClassSpecId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="EmpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="FieldGroupId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="FieldPosId" type="xs:int" />
      <xs:element minOccurs="0" name="MasEmployeeType" nillable="true" type="tns:MasEmployeeType" />
      <xs:element minOccurs="0" name="MasPositionType" nillable="true" type="tns:MasPositionType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FieldPosition" nillable="true" type="tns:FieldPosition" />
  <xs:complexType name="MasPositionType">
    <xs:sequence>
      <xs:element minOccurs="0" name="EmpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MasEmployeeType" nillable="true" type="tns:MasEmployeeType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEngShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameShort" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPositionType" nillable="true" type="tns:MasPositionType" />
  <xs:complexType name="ArrayOfPosition">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Position" nillable="true" type="tns:Position" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPosition" nillable="true" type="tns:ArrayOfPosition" />
  <xs:complexType name="MasPositionStatus">
    <xs:sequence>
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PosStatusId" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPositionStatus" nillable="true" type="tns:MasPositionStatus" />
  <xs:complexType name="PsTimeAttendants">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WorkingDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WorkingEnd" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="WorkingId" type="xs:int" />
      <xs:element minOccurs="0" name="WorkingStart" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="WorkingStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PsTimeAttendants" nillable="true" type="tns:PsTimeAttendants" />
  <xs:complexType name="ArrayOfPsTimeAttendants">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PsTimeAttendants" nillable="true" type="tns:PsTimeAttendants" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPsTimeAttendants" nillable="true" type="tns:ArrayOfPsTimeAttendants" />
  <xs:complexType name="ArrayOfPsTimeAttendanceMonthly">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PsTimeAttendanceMonthly" nillable="true" type="tns:PsTimeAttendanceMonthly" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPsTimeAttendanceMonthly" nillable="true" type="tns:ArrayOfPsTimeAttendanceMonthly" />
  <xs:complexType name="PsTimeAttendanceMonthly">
    <xs:sequence>
      <xs:element minOccurs="0" name="ActualWorkingDayCount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Employee" nillable="true" type="tns:Employee" />
      <xs:element minOccurs="0" name="InvalidAbsenceDayCount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="LateDayCount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="NotWorkingDayCount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="PlanWorkingDayCount" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PsTimeAttSummaries" nillable="true" type="tns:ArrayOfPsTimeAttSummary" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TimeAttMonthId" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ValidAbsenceDayCount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="WorkingMonth" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="WorkingYear" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PsTimeAttendanceMonthly" nillable="true" type="tns:PsTimeAttendanceMonthly" />
  <xs:complexType name="ArrayOfPsTimeAttCalAudit">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PsTimeAttCalAudit" nillable="true" type="tns:PsTimeAttCalAudit" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPsTimeAttCalAudit" nillable="true" type="tns:ArrayOfPsTimeAttCalAudit" />
  <xs:complexType name="PsTimeAttCalAudit">
    <xs:sequence>
      <xs:element minOccurs="0" name="FilteredEmpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="FilteredEmployeeType" nillable="true" type="tns:MasEmployeeType" />
      <xs:element minOccurs="0" name="FilteredJobSite" nillable="true" type="tns:JobSite" />
      <xs:element minOccurs="0" name="FilteredJobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ReCalculateByEmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ReCalculateByEmployee" nillable="true" type="tns:Employee" />
      <xs:element minOccurs="0" name="ReCalculateWhen" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Success" type="xs:boolean" />
      <xs:element minOccurs="0" name="TimeAttCalAuditId" type="xs:int" />
      <xs:element minOccurs="0" name="WorkingMonth" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="WorkingYear" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PsTimeAttCalAudit" nillable="true" type="tns:PsTimeAttCalAudit" />
  <xs:complexType name="ArrayOfPsAbsenceType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PsAbsenceType" nillable="true" type="tns:PsAbsenceType" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPsAbsenceType" nillable="true" type="tns:ArrayOfPsAbsenceType" />
</xs:schema>